#!/bin/bash

currentPath=$(pwd | sed 's$\/$\\\/$g')
#echo "$currentPath"

find . ! -path "*/.pc/*" ! -path "*/.git/*"  ! -path "*/debian/*" \( -name "*.h" -o -name "*.c" -o -name "*.cc" -o -name "*.cpp" \) -type f| sed "s/^\./$currentPath/" > cscope.files 

cscope -Rbqk -i cscope.files
ctags -R
